package web.chiTietSP;

public class chiTietSP {
	String masp;
	String mctsp;
	String mausac;
	Double gia;
	Float size;
	String hinh;

	public chiTietSP(String msp, String mctsp, String ms, Double gia,
			Float size, String hinh) {
		this.masp = msp;
		this.mctsp = mctsp;
		this.mausac = ms;
		this.gia = gia;
		this.size = size;
		this.hinh = hinh;
	}

	public chiTietSP() {

	}

	public String getMasp() {
		return masp;
	}

	public void setMasp(String masp) {
		this.masp = masp;
	}

	public String getMctsp() {
		return mctsp;
	}

	public void setMctsp(String mctsp) {
		this.mctsp = mctsp;
	}

	public String getMausac() {
		return mausac;
	}

	public void setMausac(String mausac) {
		this.mausac = mausac;
	}

	public Double getGia() {
		return gia;
	}

	public void setGia(Double gia) {
		this.gia = gia;
	}

	public Float getSize() {
		return size;
	}

	public void setSize(Float size) {
		this.size = size;
	}

	public String getHinh() {
		return hinh;
	}

	public void setHinh(String hinh) {
		this.hinh = hinh;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((masp == null) ? 0 : masp.hashCode());
		result = prime * result + ((mctsp == null) ? 0 : mctsp.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		chiTietSP other = (chiTietSP) obj;
		if (masp == null) {
			if (other.masp != null)
				return false;
		} else if (!masp.equals(other.masp))
			return false;
		if (mctsp == null) {
			if (other.mctsp != null)
				return false;
		} else if (!mctsp.equals(other.mctsp))
			return false;
		return true;
	}
	
}
